# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

add_subdirectory(qabstracttextdocumentlayout)
add_subdirectory(qfont)
add_subdirectory(qfontdatabase)
add_subdirectory(qfontengine)
add_subdirectory(qfontmetrics)
add_subdirectory(qglyphrun)
add_subdirectory(qrawfont)
add_subdirectory(qstatictext)
add_subdirectory(qsyntaxhighlighter)
add_subdirectory(qtextblock)
add_subdirectory(qtextcursor)
if(QT_FEATURE_texthtmlparser)
    add_subdirectory(qtextdocumentfragment)
endif()
add_subdirectory(qtextdocumentlayout)
add_subdirectory(qtextformat)
add_subdirectory(qtextimagehandler)
add_subdirectory(qtextlist)
add_subdirectory(qtextobject)
# add_subdirectory(qtextscriptengine) # disable until system_harfbuzz feature is available
add_subdirectory(qtexttable)
add_subdirectory(qinputcontrol)
if(QT_FEATURE_private_tests AND TARGET Qt::Xml)
    add_subdirectory(qcssparser)
endif()
if(QT_FEATURE_private_tests)
    add_subdirectory(qfontcache)
    add_subdirectory(qtextlayout)
    add_subdirectory(qtextodfwriter)
endif()
if(TARGET Qt::Xml)
    add_subdirectory(qtextdocument)
endif()
if(QT_FEATURE_private_tests AND UNIX)
    add_subdirectory(qtextpiecetable)
endif()
if(QT_FEATURE_textmarkdownreader)
    add_subdirectory(qtextmarkdownimporter)
endif()
if(QT_FEATURE_private_tests AND QT_FEATURE_textmarkdownwriter)
    add_subdirectory(qtextmarkdownwriter)
endif()
